package com.hmall.search.service.Impl;

import com.hmall.common.client.ItemClient;
import com.hmall.common.dto.PageDTO;
import com.hmall.common.itemPojo.Item;
import com.hmall.common.searchPojo.Search;
import com.hmall.common.searchPojo.SearchVo;
import com.hmall.search.mapper.SearchMapper;
import com.hmall.search.service.SearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description SearchServiceImpl
 * @Author 刘
 * @Date 2024-11-15
 */
@Service
public class SearchServiceImpl implements SearchService {

    @Autowired
    private SearchMapper searchMapper;

    @Autowired
    private ItemClient itemClient;

    @Override
    public SearchVo selectFilters(Search search) {
        return itemClient.selectFilters(search);
    }

    @Override
    public PageDTO<Item> selectConditional(Search search) {
        return itemClient.selectConditional(search);
    }
}
